//
//  HJUserManager.h
//  Sneakers
//
//  Created by 胡光健 on 2017/9/28.
//  Copyright © 2017年 mac. All rights reserved.
//

#import <Foundation/Foundation.h>
@class HJUserModel;
@interface HJUserManager : NSObject
/// 同步个人信息
+ (void)syncUserModel;
+ (void)syncUserModelWithCompletion:(void (^)(HJUserModel *model))completion;


/// 获得当前登录用户的个人信息
+ (HJUserModel *)getUserModel;
/// 设置当前登录用户的个人信息
+ (void)setUserModelWithDict:(NSDictionary *)dict;


/// 是否是登录状态,如果不是，弹出登录控制器
+ (BOOL)isLogin;


+(BOOL)isLoginView;
@end

@class brandListModel,defaultSizeModel;
@interface HJUserModel : NSObject

@property(nonatomic,copy)NSString * uid;
@property(nonatomic,copy)NSString * mobile;
@property(nonatomic,copy)NSString * nickname;
@property(nonatomic,copy)NSString * openid;
@property(nonatomic,copy)NSString * qq_msg;
@property(nonatomic,copy)NSString * weibo_msg;
@property(nonatomic,copy)NSString * avatar_path;
@property(nonatomic,copy)NSString * avatar_base_url;
@property(nonatomic,copy)NSString * address;
@property(nonatomic,copy)NSString * client_id;
@property(nonatomic,copy)NSString * last_ip;
@property(nonatomic,copy)NSString * last_login;
@property(nonatomic,copy)NSString * money;
@property(nonatomic,copy)NSString * forzen_money;
@property(nonatomic,copy)NSString * is_register;
@property(nonatomic,copy)NSString * province;
@property(nonatomic,copy)NSString * city;
@property(nonatomic,copy)NSString * town;
@property(nonatomic,copy)NSString * often_size;
@property(nonatomic,copy)NSString * interest_brand;
@property(nonatomic,copy)NSString * status;
@property(nonatomic,copy)NSString * created_at;
@property(nonatomic,copy)NSString * updated_at;
@property(nonatomic,copy)NSString * city_cn;
@property(nonatomic,copy)NSString * my_interest;
@property(nonatomic,strong)NSNumber * my_sell;
@property(nonatomic,strong)NSNumber * my_buy;
@property(nonatomic,strong)NSArray * brand_list;
@property(nonatomic,strong)NSArray * default_size;
@end

@interface brandListModel : NSObject
@property(nonatomic,copy)NSString * brand_id;
@property(nonatomic,copy)NSString * brand_name;
@property(nonatomic,copy)NSNumber *check;
@end
@interface defaultSizeModel : NSObject
@property(nonatomic,copy)NSString * size_num;
@property(nonatomic,copy)NSNumber *check;
@end
